<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
   <script type="text/javascript">
       var day=6
       var myweathe="天气晴朗"
       var weather = "天气晴朗"
       var d=[1,2,3,4,5,6,7]
       for (var s = 0;s < d.length;s++){
           if (day<d[5]) {
                if (myweathe==weather){
                    document.write("拜访客户")
                    break;
                }else{
                    document.write("在公司写文档")
                    break;
                }
           }else{
               if (myweathe==weather){
                   document.write("爬山")
                   break;
               }else{
                   document.write("睡觉")
                   break;
               }
           }
       }
   </script>
</body>
</html>